import json
with open('class_id.json', 'r') as f:
    arr = json.load(f)

print('len(arr):', len(arr))
ret = [l.split(',')[0].strip() for l in arr]
with open('labels.txt', 'w') as f:
    f.write(';'.join(ret) + '\n')
